#include "WPILib/AnalogChannel.h"

const int chan = 1;

AnalogChannel* backEMF = new AnalogChannel(chan);

int LSBWeight;
int offset;
float voltage;

void getVals()
{
	LSBWeight = backEMF->GetLSBWeight();
	offset = backEMF->GetOffset();
	voltage = backEMF->GetVoltage();
}
void showVals()
{
	printf("\nThe LSB Weight of the channel is: %d", LSBWeight);
	printf("\nThe offset of the channel is: %d", offset);
	printf("\nThe voltage of the channel is: %f", voltage);
}

int main()
{
	while(true)
	{
		getVals();
		showVals();
	}
}
